/**
 * Created by henian.xu on 2018/3/16.
 *
 */
import React from 'react';
import {Text, View, TextInput, NavigatorIOS, Button} from 'react-native';
import styles from '../styles';

export default class Main extends React.Component {
    constructor(props) {
        super(props);
    }

    press() {
        this.props.navigation.navigate('settings');
    }

    render() {
        return (
            <View style={styles.body}>
                <Button
                    title={'to setting'}
                    onPress={this.press.bind(this)}
                />
                <NavigatorIOS/>
                <TextInput/>
                <Text style={styles.text}>Open up App.js to start working on your app!</Text>
                <Text>Changes you make will automatically reload.</Text>
                <Text>Shake your phone to open the developer menu.</Text>
            </View>
        );
    }
}
